<?php
abstract class Application_Ajax_Server_Function
{
	protected $_params;

	public function __construct($params = null) {
		$this->_params = $params;
	}

	abstract protected function call();

	protected function _getParam($param, $default = null) {
		return (!empty($this->_params[$param])) ? $this->_params[$param] : $default;
	}
	
}